// txtReaderView.h : interface of the CTxtReaderView class
//
/////////////////////////////////////////////////////////////////////////////

#pragma once
#include "TxtFileLoader.h"

class CTxtReaderView : public CWindowImpl<CTxtReaderView>
{
public:
	DECLARE_WND_CLASS(NULL);

	BOOL PreTranslateMessage(MSG* pMsg);

	BEGIN_MSG_MAP(CTxtReaderView)
		MESSAGE_HANDLER(WM_PAINT, OnPaint)
		MESSAGE_HANDLER(WM_CREATE, OnCreate)
		MESSAGE_HANDLER(WM_SIZE, OnSize)
		MESSAGE_HANDLER(WM_KEYDOWN, OnKeyDown)
	END_MSG_MAP()
protected:
	LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnKeyDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
private:
	CTxtFileLoader m_loader;
public:
	LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnSize(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
};
